import 'package:flutter/material.dart';
class LinePaint extends CustomPaint{

  Paint _paint=Paint()
  ..color=Colors.black54
  ..strokeCap=StrokeCap.round
  ..isAntiAlias=true;

  @override
  // TODO: implement painter
  void paint(Canvas canvas, Size size){
    canvas.drawLine(Offset(0, 0), Offset(size.width, size.height), _paint) ;
  }

}